﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using DAL.Properties;

namespace DAL.Models
{
    public partial class Employer : INotifyPropertyChanged
    {
        partial void OnEmployerNameChanging(string value)
        {
            if (value.Length == 0)
                throw new Exception(Resources.Field_Cant_Be_Empty);
        }

        partial void OnManagerIdChanging(int value)
        {
            if (value == 0)
                throw new Exception(Resources.Field_Cant_Be_Empty);
        }
    }
}
